<?php
class GenerateController extends Zend_Controller_Action
{
	public function init()
	{
		IndexController::initAdmin($this);
	}
	
	#Generate
	public function indexAction()
	{
		$strCallback	= $this->_request->getParam('callback', 'callback');
		$intIndex		= $this->_request->getParam('i', -1);
		$objCGenerate = new CGenerate($this->AppUI->country);
		$objCGenerate->generateAuto($strCallback, $intIndex);
		exit;
	}
		
	public function sendEmailAction()
	{
		$objCrondtab = new CrontabController();
		$objCrondtab->generateSendEmail($this->AppUI->country);
		exit;
	}
}
?>
